package org.springcloud.wisdom.amusement.login.loginmsg.controller;

import org.springcloud.wisdom.amusement.bean.ResponseData;
import org.springcloud.wisdom.amusement.login.loginmsg.entity.Mall;
import org.springcloud.wisdom.amusement.login.loginmsg.service.CanMallService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@RestController
@CrossOrigin
@RequestMapping("/can")
public class CanMallController extends BaseController {
    @Autowired
    private CanMallService canMallService;
    //修改商家信息
    @PutMapping("/update")
    public ResponseData<Boolean> updateMall(@RequestBody Mall mall){
        return returnBoolean(canMallService.updataMall(mall));
    }
}
